package five;

/*
 *ClassName:Task03Test
 *UserName:邓嘉豪
 *CreateTime:2020/9/11 13:06
 */
public class Task03Test {
    public static void main(String[] args) {
        Triangle t = new Triangle();
        Rectangle r = new Rectangle();
        Circle c = new Circle();
        t.n=3;
        t.m=5;
        int triangle =t.calArea(t.n,t.m);
        r.n=6;
        r.m=7;
        int rectangle = r.calArea(r.n,r.m);
        c.n=6;
        int circle = c.calArea(c.n,0);
        int []num = {triangle,rectangle,circle};
        for (int i = 0; i <num.length ; i++) {
            if(i<num.length-1){
                System.out.print(num[i]+",");
            }
            if(i==num.length-1){
                System.out.print(num[i]);
            }
        }
    }
}
